package com.coocaa.ops.common.core.base.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @author bijiahao
 * @date : 2019/6/12.
 * @description 资源信息 模型类
 *
 */
@Data
public class ResourceBaseModel implements Serializable{
    /**
     * 资源id
     */
    private Integer id;
    /**
     * 资源版本
     */
    private Integer version;

    /**
     * 资源类型
     */
    private String type;

    public ResourceBaseModel() {
    }

    public ResourceBaseModel(String type, Integer id, Integer version) {
        this.id = id;
        this.version = version;
        this.type = type;
    }

    public static ResourceBaseModel getResourceBaseModel(String type, Integer id, Integer version) {
        return new ResourceBaseModel(type, id, version);
    }
}
